<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
    <!--<meta name="viewport" content="width=device-width, initial-scale=1,user-scalable=no"/>-->
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <meta name="description" content="web description is me">
    <meta name="author" content="wangqinmin">
    <link rel="icon" href="../img/icon/B.ico">
    <title>栅格系统的用法</title>
    <link rel="stylesheet" href="../bootstrap-3.3.7/css/bootstrap.css"/>
    <link rel="stylesheet" href="../bootstrap-3.3.7/css/bootstrap-theme.css"/>
    <link href="../css/ie10-viewport-bug-workaround.css" rel="stylesheet">
    <link href="../css/starter-template.css" rel="stylesheet">
    <script type="text/javascript" src="../jquery-3.3.1/jquery-3.3.1.js"></script>
    <script type="text/javascript" src="../bootstrap-3.3.7/js/bootstrap.js"></script>

    <style>
        div {
            border: 1px #c9302c solid;
        }
    </style>
</head>
<!-- 栅格系统的用法 -->
<body>
<div class="container" style="background: orange">
    <h2>div范围</h2>
</div>
<br/>
<div class="container-fluid" style="background: #8395ff">
    <h2>div范围</h2>
</div>

<!-- 列组合 -->
列组合
<div class="container">
    <div class="row">
        <div class="col-md-4">col-md-4</div>
        <div class="col-md-4">col-md-4</div>
        <div class="col-md-4">col-md-4</div>
    </div>
    <div class="row">
        <div class="col-xs-6">col-xs-6</div>
        <div class="col-xs-6">col-xs-6</div>
    </div>
</div>

<!-- 列偏移 -->
列偏移
<div class="container">
    <div class="row">
        <!--  从左边开始空3格 -->
        <div class="col-md-3 col-md-offset-3">col-md-3,左边空3格</div>
        <div class="col-md-2 col-md-offset-2">col-md-2左边空2格</div>
    </div>
</div>

<!-- 列嵌套 -->
列嵌套
<div class="container">
    <div class="row">
        <!--  从左边开始空3格 -->
        <div class="col-md-8">
            <div class="row">
                <div class="col-md-6">col-md-6嵌套</div>
                <div class="col-md-6">col-md-6嵌套</div>
            </div>
        </div>
        <div class="col-md-4">col-md-4</div>
    </div>
</div>

<!-- 列排序 -->
列排序
<div class="container">
    <div class="row">
        <!-- push向右推5格 -->
        <div class="col-md-3 col-md-push-5">col-md-3</div>
        <!-- 向左拉2格 -->
        <div class="col-md-2 col-md-pull-2">col-md-2</div>
    </div>
    <div class="row">
        <div class="col-md-1">col-md-1</div>
        <div class="col-md-1">col-md-1</div>
        <div class="col-md-1">col-md-1</div>
        <div class="col-md-1">col-md-1</div>
        <div class="col-md-1">col-md-1</div>
        <div class="col-md-1">col-md-1</div>
        <div class="col-md-1">col-md-1</div>
        <div class="col-md-1">col-md-1</div>
        <div class="col-md-1">col-md-1</div>
        <div class="col-md-1">col-md-1</div>
        <div class="col-md-1">col-md-1</div>
        <div class="col-md-1">col-md-1</div>
    </div>
</div>

<!-- 跨设备组合定义 -->
跨设备组合定义（不同分辨率，显示不同）
<div class="container">
    <div class="row">
        <div class="col-md-8 col-xs-6 col-sm-3">col-md-8</div>
        <div class="col-md-4 col-xs-6 col-sm-9">col-md-4</div>
    </div>
</div>

<!-- container：作用相当于一个自动居中的容器(用的地方很多，不然样式可能难看) -->
<!-- 跨设备组合定义 -->
内容较多，数据显示>=2行 ，导致第3行数据排列在第2行 (解决办法：清除浮动)
<div class="container">
    <div class="row">
        <div class="col-xs-6 col-sm-3">col-xs-6 col-sm-3
            <br/>本是同一行的内容
        </div>
        <div class="col-xs-6 col-sm-3">col-xs-6 col-sm-3</div>
        <!-- 清除浮动，只在超小设备上显示该div -->
        <div class="clearfix visible-xs"></div>
        <div class="col-xs-6 col-sm-3">col-xs-6 col-sm-3</div>
        <div class="col-xs-6 col-sm-3">col-xs-6 col-sm-3</div>
    </div>
</div>
<br/>
</body>
</html>